package com.qk.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 配置类
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {

//    @Autowired
//    private TokenInterceptor tokenInterceptor;

//    @Autowired
//    private DemoInterceptor demoInterceptor;

//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
////        registry.addInterceptor(tokenInterceptor)
////                .addPathPatterns("/**") // 拦截所有请求
////                .excludePathPatterns("/login"); // 登录接口不拦截
//        registry.addInterceptor(demoInterceptor).addPathPatterns("/**") ;
//    }
}
